package cn.stazxr.exception;

import lombok.Getter;

import java.io.Serial;

/**
 * @author talentestors
 * @version 1.0
 * @since 2025.10.29
 **/
@Getter
public class BusinessException extends RuntimeException {
	@Serial
	private static final long serialVersionUID = 8431637251206283679L;

	protected final int code;

	public BusinessException(String msg) {
		super(msg);
		this.code = 500;
	}

	public BusinessException(String msg, int code) {
		super(msg);
		this.code = code;
	}

}
